﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WaterMessage
{
    public class Current_pose
    {
        public double x { get; set; }
        public double y { get; set; }
        public double theta { get; set; }
    }

    public class Base
    {
        public string type { get; set; }
        public string command { get; set; }
        public string uuid { get; set; }
        public string status { get; set; }
        public string error_message { get; set; }
    }

    public class query_brief : Base
    {
        public Dictionary<string,string> results { get; set; }
    }

    public class robot_info : Base
    {
        public class ResultsType
        {
            public string product_id { get; set; }
        }

        public ResultsType results { get; set; }
    }

    public class robot_status : Base
    {
        public class ResultsType
        {
            public string move_target { get; set; }
            public string move_status { get; set; }
            public string running_status { get; set; }
            public int move_retry_times { get; set; }
            public bool charge_state { get; set; }
            public bool soft_estop_state { get; set; }
            public bool hard_estop_state { get; set; }
            public bool estop_state { get; set; }
            public int power_percent { get; set; }
            public Current_pose current_pose { get; set; }
            public int current_floor { get; set; }
            public string chargepile_id { get; set; }
            public string error_code { get; set; }
        }
        public ResultsType results { get; set; }
    }

}
